#from our_game_runner import GameRunner
from loa_game import LinesOfActionState, WHITE, BLACK

from z_game_runner import TestGameRunner
       
def TestMatch(agent1, agent2, gameSize, numOfTurns, turnTime, setupTime):
    state = LinesOfActionState(gameSize, numOfTurns)
    result1 = TestGameRunner(state, {WHITE:agent1, BLACK:agent2}, turnTime, setupTime).run()
    result2 = TestGameRunner(state, {WHITE:agent2, BLACK:agent1}, turnTime, setupTime).run()
    return (result1[0], result1[1]), (result2[1],result2[0])
        